@@ -193,7 +193,10 @@ |
||
| 193 | 193 |
}); |
| 194 | 194 |
}); |
| 195 | 195 |
V.wxScanQRCodeSuccess = function (res) {
|
| 196 |
- $('#code').val(res.resultStr);
|
|
| 196 |
+ var resultStr = res.resultStr; |
|
| 197 |
+ var results = resultStr.split(',');
|
|
| 198 |
+ var codeStr = results[results.length - 1]; |
|
| 199 |
+ $('#code').val(codeStr);
|
|
| 197 | 200 |
} |
| 198 | 201 |
</script> |
| 199 | 202 |
</body> |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 |
wxconfig: 'http://api.pai.ai/wx/jsapi_signature', |
| 4 | 4 |
callback: 'callback' |
| 5 | 5 |
}, wxData = {
|
| 6 |
- debug: true, |
|
| 6 |
+ debug: false, |
|
| 7 | 7 |
imgUrl: '', |
| 8 | 8 |
link: '', |
| 9 | 9 |
desc: '', |